<div class="budgetStates view">
<h2><?php  __('Budget State');?></h2>
	<dl><?php $i = 0; $class = ' class="altrow"';?>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Id'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $budgetState['BudgetState']['id']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Estado'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $budgetState['BudgetState']['estado']; ?>
			&nbsp;
		</dd>
	</dl>
</div>
<div class="actions">
	<h3><?php __('Actions'); ?></h3>
	<ul>
		<li><?php echo $this->Html->link(__('Edit Budget State', true), array('action' => 'edit', $budgetState['BudgetState']['id'])); ?> </li>
		<li><?php echo $this->Html->link(__('Delete Budget State', true), array('action' => 'delete', $budgetState['BudgetState']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $budgetState['BudgetState']['id'])); ?> </li>
		<li><?php echo $this->Html->link(__('List Budget States', true), array('action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Budget State', true), array('action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Budgets', true), array('controller' => 'budgets', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Budget', true), array('controller' => 'budgets', 'action' => 'add')); ?> </li>
	</ul>
</div>
<div class="related">
	<h3><?php __('Related Budgets');?></h3>
	<?php if (!empty($budgetState['Budget'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php __('Id'); ?></th>
		<th><?php __('Descripcion'); ?></th>
		<th><?php __('Person Id'); ?></th>
		<th><?php __('Project Id'); ?></th>
		<th><?php __('Precio'); ?></th>
		<th><?php __('Capacitation Id'); ?></th>
		<th><?php __('Budget State Id'); ?></th>
		<th><?php __('Comentarios'); ?></th>
		<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($budgetState['Budget'] as $budget):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $budget['id'];?></td>
			<td><?php echo $budget['descripcion'];?></td>
			<td><?php echo $budget['person_id'];?></td>
			<td><?php echo $budget['project_id'];?></td>
			<td><?php echo $budget['precio'];?></td>
			<td><?php echo $budget['capacitation_id'];?></td>
			<td><?php echo $budget['budget_state_id'];?></td>
			<td><?php echo $budget['comentarios'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View', true), array('controller' => 'budgets', 'action' => 'view', $budget['id'])); ?>
				<?php echo $this->Html->link(__('Edit', true), array('controller' => 'budgets', 'action' => 'edit', $budget['id'])); ?>
				<?php echo $this->Html->link(__('Delete', true), array('controller' => 'budgets', 'action' => 'delete', $budget['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $budget['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Budget', true), array('controller' => 'budgets', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
